package com.wwy.listener;

import org.springframework.stereotype.Component;

@Component
public class MessageReceiver {

    /**
     * 接收定时器消息的方法
     */
    public void receiveMessage(String message){

        System.out.println("》》》》》消息接收成功1！》》》》》" + message);

    }

    public void receiveMessage2(String message){
        System.out.println("收到一条消息2："+message);
    }
}
